using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace CommerceOne.Models.Entities
{
    public partial class Contact
    {
        public int ID { get; set; }

        [Required]
        public string Title { get; set; }

        [Required]
        public string FirstName { get; set; }

        [Required]
        public string LastName  { get; set; }

        [Required]
        public string Company { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        [Required]
        public DateTime? BirthDay { get; set; }

        [Required]
        public string EmailAddress  { get; set; }

        [Required]
        public string PasswordHash { get; set; }
        public  string PasswordSalt { get; set; }
        public  DateTime ModifiedDate { get; set; }

        [Required]
        public  int? QuestionID { get ; set; }

        [Required]
        public  string Answer { get; set; }

        public Boolean Active { get; set; }

        public int RoleID { get; set; }

        public virtual ICollection<Address> Addresses { get; set; }

        [ForeignKey("RoleID")]
        public virtual Role Role { get; set; }
    }
}
